home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / IDL / PstObj.idl < prev    next >
Encoding:
Text File  |  1997-01-01  |  1.6 KB  |  71 lines  |  [TEXT/MPS ]

  1. //#    Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  2.  
  3. #ifndef _PSTOBJ_
  4. #define _PSTOBJ_
  5.  
  6. #ifndef _REFCTOBJ_
  7. #include "RefCtObj.idl"
  8. #endif
  9.  
  10. //==============================================================================
  11. // Classes defined in this interface
  12. //==============================================================================
  13.  
  14. interface  ODPersistentObject;
  15.  
  16. //==============================================================================
  17. // Classes used by this interface
  18. //==============================================================================
  19.  
  20. interface    ODStorageUnit;
  21. interface    ODFrame;
  22.  
  23. //==============================================================================
  24. // ODPersistentObject
  25. //==============================================================================
  26.  
  27. interface ODPersistentObject :  ODRefCntObject
  28. {
  29.   void  InitPersistentObject(in ODStorageUnit storageUnit);
  30.  
  31.   void  InitPersistentObjectFromStorage(in ODStorageUnit storageUnit);
  32.     
  33.   void  ReleaseAll();
  34.   
  35.   void  Externalize();
  36.                   
  37.   ODStorageUnit  GetStorageUnit();
  38.     
  39.   ODID   GetID();
  40.   
  41.   void CloneInto(in ODDraftKey key,
  42.                               in ODStorageUnit toSU,
  43.                             in ODFrame scope);
  44.   
  45. #ifdef __SOMIDL__
  46.     implementation
  47.     {
  48.     majorversion = 1; minorversion = 0;
  49.         
  50.       functionprefix = ODPersistentObject;
  51.     
  52.       override:
  53.         somUninit;
  54.     
  55.     releaseorder:
  56.         InitPersistentObject,
  57.         InitPersistentObjectFromStorage,
  58.         ReleaseAll,
  59.         Externalize,
  60.         GetStorageUnit,
  61.         GetID,
  62.         CloneInto;
  63.         
  64.     
  65.   };
  66. #endif //# __SOMIDL__
  67. };
  68.  
  69. #endif //# _PSTOBJ_
  70.  
  71.